﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Glossary.aspx.vb" Inherits="TechJunkieProj.Glossary" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <br />
    <br />
    <link href='http://fonts.googleapis.com/css?family=Kaushan+Script|UnifrakturMaguntia|Cinzel+Decorative:700' rel='stylesheet' type='text/css'>&nbsp;
       
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<h1 class= "PageTitle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u>Glosssary</u></h1>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <asp:Panel ID="Panel1" runat="server" BorderStyle="Dashed" Height="115px">
    <br />  <br /> 
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Search a word:&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_Word" runat="server" Height="23px" Width="280px" 
            BorderStyle="Groove">Enter word and click on search...</asp:TextBox>
        &nbsp;
        <asp:Button ID="btn_wordSearch" runat="server" Text="Search" />
        &nbsp;<br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lbl_msgbox" 
            runat="server" Text="Label" Visible="False"></asp:Label>
        <br />
    </asp:Panel>
    <br />
    <br />
    <asp:Panel ID="Panel2" runat="server" Visible="False">
        <asp:Label ID="lbl_word" runat="server" Text="Label" Height="50px" 
            Width="192px"></asp:Label>
        <br />
        <br />
        <asp:Label ID="lbl_meaning" runat="server" Height="109px" Text="Label" 
            Width="883px"></asp:Label>
        <br />
        <br />
    </asp:Panel>
    <br />
    <br />
    
    <h1><asp:Label ID="Label5" runat="server" Text="A-E" BorderStyle="Solid" 
            Width="924px" CssClass="GlossaryRange"></asp:Label></h1>
    <hr />
         <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
            <AlternatingItemTemplate>
                <span style="background-color: #FFFFFF;color: #284775;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </AlternatingItemTemplate>
            <EditItemTemplate>
                <span style="background-color: #999999;">
                <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
                <br />
                
                <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
                <br />
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                    Text="Update" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Cancel" />
                <br />
                <br />
                </span>
            </EditItemTemplate>
            <EmptyDataTemplate>
                <span>No data was returned.</span>
            </EmptyDataTemplate>
            <InsertItemTemplate>
                <span style="">
                <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
                <br />
                
                <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
                <br />
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                    Text="Insert" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Clear" />
                <br />
                <br />
                </span>
            </InsertItemTemplate>
            <ItemTemplate>
                <span style="background-color: #E0FFFF;color: #333333;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </ItemTemplate>
            <LayoutTemplate>
                <div ID="itemPlaceholderContainer" runat="server" 
                    style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                    <span runat="server" id="itemPlaceholder" />
                </div>
                <div style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF;">
                    <asp:DataPager ID="DataPager1" runat="server">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                ShowNextPageButton="False" ShowPreviousPageButton="False" />
                            <asp:NumericPagerField />
                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                ShowNextPageButton="False" ShowPreviousPageButton="False" />
                        </Fields>
                    </asp:DataPager>
                </div>
            </LayoutTemplate>
            <SelectedItemTemplate>
                <span style="background-color: #E2DED6;font-weight: bold;color: #333333;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </SelectedItemTemplate>
        </asp:ListView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
    SelectCommand="SELECT Word,Meaning FROM Glossary WHERE (Word LIKE '[A-E]%')">
        </asp:SqlDataSource>
    <p>
    
    </p>
    <br />
    <br />
    <br />
    <h1><asp:Label ID="Label4" runat="server" Text="F-J" BorderStyle="Solid" 
            Width="924px" CssClass="GlossaryRange"></asp:Label></h1>
            <hr />
    <asp:ListView ID="ListView2" runat="server" 
    DataSourceID="SqlDataSource2">
            <AlternatingItemTemplate>
                <span style="background-color: #FFFFFF;color: #284775;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </AlternatingItemTemplate>
            <EditItemTemplate>
                <span style="background-color: #999999;">
                <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
                <br />
                
                <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
                <br />
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                    Text="Update" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Cancel" />
                <br />
                <br />
                </span>
            </EditItemTemplate>
            <EmptyDataTemplate>
                <span>No data was returned.</span>
            </EmptyDataTemplate>
            <InsertItemTemplate>
                <span style="">
                <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
                <br />
                
                <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
                <br />
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                    Text="Insert" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Clear" />
                <br />
                <br />
                </span>
            </InsertItemTemplate>
            <ItemTemplate>
                <span style="background-color: #E0FFFF;color: #333333;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </ItemTemplate>
            <LayoutTemplate>
                <div ID="itemPlaceholderContainer" runat="server" 
                    style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                    <span runat="server" id="itemPlaceholder" />
                </div>
                <div style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF;">
                    <asp:DataPager ID="DataPager1" runat="server">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                ShowNextPageButton="False" ShowPreviousPageButton="False" />
                            <asp:NumericPagerField />
                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                ShowNextPageButton="False" ShowPreviousPageButton="False" />
                        </Fields>
                    </asp:DataPager>
                </div>
            </LayoutTemplate>
            <SelectedItemTemplate>
                <span style="background-color: #E2DED6;font-weight: bold;color: #333333;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </SelectedItemTemplate>
        </asp:ListView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
    SelectCommand="SELECT Word, Meaning FROM Glossary WHERE (Word LIKE '[F-J]%')">
        </asp:SqlDataSource>
    <br />
    <br />
    <br />
    <br />
    <h1><asp:Label ID="Label3" runat="server" Text="K-O" BorderStyle="Solid" 
            Width="924px" CssClass="GlossaryRange"></asp:Label></h1>
            <hr />
    <asp:ListView ID="ListView3" runat="server" 
    DataSourceID="SqlDataSource3">
            <AlternatingItemTemplate>
                <span style="background-color: #FFFFFF;color: #284775;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </AlternatingItemTemplate>
            <EditItemTemplate>
                <span style="background-color: #999999;">
                <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
                <br />
                
                <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
                <br />
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
            Text="Update" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
            Text="Cancel" />
                <br />
                <br />
                </span>
            </EditItemTemplate>
            <EmptyDataTemplate>
                <span>No data was returned.</span>
            </EmptyDataTemplate>
            <InsertItemTemplate>
                <span style="">
                <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
                <br />
                
                <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
                <br />
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
            Text="Insert" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
            Text="Clear" />
                <br />
                <br />
                </span>
            </InsertItemTemplate>
            <ItemTemplate>
                <span style="background-color: #E0FFFF;color: #333333;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </ItemTemplate>
            <LayoutTemplate>
                <div ID="itemPlaceholderContainer" runat="server" 
            style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                    <span runat="server" id="itemPlaceholder" />
                </div>
                <div style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF;">
                    <asp:DataPager ID="DataPager1" runat="server">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                        ShowNextPageButton="False" ShowPreviousPageButton="False" />
                            <asp:NumericPagerField />
                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                        ShowNextPageButton="False" ShowPreviousPageButton="False" />
                        </Fields>
                    </asp:DataPager>
                </div>
            </LayoutTemplate>
            <SelectedItemTemplate>
                <span style="background-color: #E2DED6;font-weight: bold;color: #333333;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </SelectedItemTemplate>
        </asp:ListView>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
    SelectCommand="SELECT Word, Meaning FROM Glossary WHERE (Word LIKE '[K-O]%')">
        </asp:SqlDataSource>
    <br />
    <br />
    <br />
    <br />
    <h1><asp:Label ID="Label2" runat="server" Text="P-T" BorderStyle="Solid" 
            Width="924px" CssClass="GlossaryRange"></asp:Label></h1>
            <hr />
    <asp:ListView ID="ListView4" runat="server" 
    DataSourceID="SqlDataSource4">
            <AlternatingItemTemplate>
                <span style="background-color: #FFFFFF;color: #284775;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </AlternatingItemTemplate>
            <EditItemTemplate>
                <span style="background-color: #999999;">
                <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
                <br />
                
                <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
                <br />
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
            Text="Update" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
            Text="Cancel" />
                <br />
                <br />
                </span>
            </EditItemTemplate>
            <EmptyDataTemplate>
                <span>No data was returned.</span>
            </EmptyDataTemplate>
            <InsertItemTemplate>
                <span style="">
                <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
                <br />
                
                <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
                <br />
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
            Text="Insert" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
            Text="Clear" />
                <br />
                <br />
                </span>
            </InsertItemTemplate>
            <ItemTemplate>
                <span style="background-color: #E0FFFF;color: #333333;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </ItemTemplate>
            <LayoutTemplate>
                <div ID="itemPlaceholderContainer" runat="server" 
            style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                    <span runat="server" id="itemPlaceholder" />
                </div>
                <div style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF;">
                    <asp:DataPager ID="DataPager1" runat="server">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                        ShowNextPageButton="False" ShowPreviousPageButton="False" />
                            <asp:NumericPagerField />
                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                        ShowNextPageButton="False" ShowPreviousPageButton="False" />
                        </Fields>
                    </asp:DataPager>
                </div>
            </LayoutTemplate>
            <SelectedItemTemplate>
                <span style="background-color: #E2DED6;font-weight: bold;color: #333333;">
                <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
                <br />
                
                <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
                <br />
                <br />
                </span>
            </SelectedItemTemplate>
        </asp:ListView>
        <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" SelectCommand="SELECT        Word, Meaning
FROM            Glossary
WHERE         Word LIKE '[P-T]%'"></asp:SqlDataSource>
        
    <br />
    <br />
    <br />
    <br />
    <h1><asp:Label ID="Label1" runat="server" 
            Text="U-Z" BorderStyle="Solid" 
            Width="924px" CssClass="GlossaryRange"></asp:Label></h1>
    <hr />
    <asp:ListView ID="ListView5" runat="server" DataSourceID="SqlDataSource5">
        <AlternatingItemTemplate>
            <span style="background-color: #FFFFFF;color: #284775;">
            <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
            <br />
            
            <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
            <br />
<br /></span>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <span style="background-color: #999999;">
            <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
            <br />
            
            <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
            <br />
            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                Text="Update" />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Cancel" />
            <br /><br /></span>
        </EditItemTemplate>
        <EmptyDataTemplate>
            <span>No data was returned.</span>
        </EmptyDataTemplate>
        <InsertItemTemplate>
            <span style="">
            <asp:TextBox ID="WordTextBox" runat="server" Text='<%# Bind("Word") %>' />
            <br />
            <asp:TextBox ID="MeaningTextBox" runat="server" Text='<%# Bind("Meaning") %>' />
            <br />
            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                Text="Insert" />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Clear" />
            <br /><br /></span>
        </InsertItemTemplate>
        <ItemTemplate>
            <span style="background-color: #E0FFFF;color: #333333;">
            <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
            <br />
            
            <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
            <br />
<br /></span>
        </ItemTemplate>
        <LayoutTemplate>
            <div ID="itemPlaceholderContainer" runat="server" 
                style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                <span runat="server" id="itemPlaceholder" />
            </div>
            <div style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF;">
                <asp:DataPager ID="DataPager1" runat="server">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                            ShowNextPageButton="False" ShowPreviousPageButton="False" />
                        <asp:NumericPagerField />
                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                            ShowNextPageButton="False" ShowPreviousPageButton="False" />
                    </Fields>
                </asp:DataPager>
            </div>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <span style="background-color: #E2DED6;font-weight: bold;color: #333333;">
            <asp:Label ID="WordLabel" runat="server" Text='<%# Eval("Word") %>' />
            <br />
            
            <asp:Label ID="MeaningLabel" runat="server" Text='<%# Eval("Meaning") %>' />
            <br />
<br /></span>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" SelectCommand="SELECT        Word, Meaning
FROM            Glossary
WHERE         Word LIKE '[U-Z]%'"></asp:SqlDataSource>
    
      
</asp:Content>
